{% load i18n %}
<ul class="category-root nav nav-tabs nav-stacked">
  {% for category in categories %}
  <li{% if category.slug == context_category.slug %} class="current"{% endif %}>
    <a href="{{ category.get_absolute_url }}"
       title="{% blocktrans %}Show all entries in {{ category }}{% endblocktrans %}">{{ category }}
      <span class="label label-info">
        {% blocktrans count entry_count=category.count_entries_published %}{{ entry_count }} entry{% plural %}{{ entry_count }} entries{% endblocktrans %}
      </span>
    </a>
  </li>
  {% empty %}
  <li>
    <a href="#">{% trans "No categories yet." %}</a>
  </li>
  {% endfor %}
</ul>
